package com.coszero.utils.countdown

import android.os.CountDownTimer

/**
 * Desc： 重写CountDownTimer类
 * 解决倒计时onTick方法的回调不准的问题
 * 解决方式:在原有倒计时基础上补足缺少的毫秒数
 *
 * @author xmqian
 * Email:xmqian93@163.com
 * Date: 2020/9/21 0021 17:28
 */
abstract class MyCountDownTimer
/**
 * @param millisInFuture The number of millis in the future from the call
 * to [.start] until the countdown is done and [.onFinish]
 * is called.
 * @param countDownInterval The interval along the way to receive
 * [.onTick] callbacks.
 */
    (millisInFuture: Long, countDownInterval: Long) :
    CountDownTimer(millisInFuture + 500, countDownInterval)
